import { addManageUser } from '@/api/manage'
export default {
  state: {

  },
  mutations: {

  },
  getters: {

  },
  actions: {
    manageAdd ({ manage_name, manage_phone, manage_pass, avator, access, manage_state }) {
      return new Promise((resolve, reject) => {
        addManageUser({ manage_name, manage_phone, manage_pass, avator, access, manage_state }).then(res => {
          resolve(res)
        }).catch((err) => {
          reject(err)
        })
      })
    }
  }
}
